using LitJson;
public sealed class AppData
{
    public static readonly UserData userData = new UserData();
    public static void setUserData(JsonData data)
    {
        userData.id = (int)data["id"];
        userData.name = (string)data["name"];
        userData.password = (string)data["password"];
    }
}